public class Strings
{
    public static void main(String[] args) 
    {
    	java.io.PrintStream o = System.out;
    	java.util.Scanner s = new java.util.Scanner(System.in);
    	System.out.print("Enter your string from the keyboard to be manipulated: ");
    	String stro= s.nextLine(),str=stro;
    	o.println("Your String is "+Utils.surround(str)+"");
    	o.println("The length of the string "+Utils.surround(str)+" is "+str.length());
    	o.println("The third character of the string "+Utils.surround(str)+" is "+Utils.surround(String.valueOf(str.toCharArray()[2])));
    	o.println("Your String was "+Utils.surround(str)+" and is now "+Utils.surround(str=str.replace('a', 'e')));
    	o.println("The length of your new string "+Utils.surround(str)+" is "+str.length());
    	o.println("Your String was "+Utils.surround(str)+" and is now "+Utils.surround(str=str.substring(5)));
    	o.println("The length of your new string "+Utils.surround(str)+" is "+str.length());
    	
    	str=stro;
    	o.println("Your String was "+Utils.surround(str)+" and is now "+Utils.surround(str=stro.substring(5,8)));
    	o.println("The length of your new string "+Utils.surround(str)+" is "+str.length());
    	
    	str=stro;
    	o.println("Your String was "+Utils.surround(str)+" and is now "+Utils.surround((str=str.toUpperCase())));
    	o.println("Your String was "+Utils.surround(str)+" and is now "+Utils.surround((str=str.toLowerCase())));
    }
}
